import {service} from "@/utils/http";

export const login = (username, password) => {
    const url = `userCenter/user/login?username=` + username + `&password=` + password;
    return service.post(url, username, password)
}

export const getRandomSixNumber = () => {
    const url = `userCenter/user/getRandomSixNumber`
    return service.get(url)
}

export const register = (params) => {
    const url = `userCenter/user/register`
    return service.post(url, params)
}